module.exports = {
    title: '文档',
    description: 'Just playing around.',
    head: [
        ['link', { rel: 'icon', href: '/favicon.ico' }],
        [
            'link',
            { rel: 'preconnect', href: 'https://fonts.googleapis.com' }
        ],
        [
            'link',
            { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }
        ],
        [
            'link',
            { href: 'https://fonts.googleapis.com/css2?family=Roboto&display=swap', rel: 'stylesheet' }
        ]
    ],
    themeConfig: {
        logo: "/favicon.ico",
        siteTitle: 'jzToolLib',
        nav: [
            { text: 'Home', link: '/' },
            { text: '指南', link: '/guide' },
            { text: 'VuePress', link: 'https://vitepress.vuejs.org/' }
        ],
        sidebar: [
            { text: '指南', link: '/guide' },
            {
                text: 'Api',
                items: [
                    { text: '基础 Base', link: '/api/Base' },
                    { text: '数组 Array', link: '/api/Array' },
                    { text: '分页 Page', link: '/api/Page' },
                    { text: '正则 RegExp', link: '/api/RegExp' },
                    { text: '路由 Router', link: '/api/Router' },
                    { text: '缓存 Storage', link: '/api/Storage' },
                    { text: '网络请求 Request', link: '/api/Http' },
                    { text: '下载 Download', link: '/api/Download' },
                    { text: '长连接 WebSocket', link: '/api/Websocket' },
                ]
            },
        ],
        docFooter: {
            prev: '上一页',
            next: '下一页'
        },
        lastUpdated: true,
        footer: {
            message: 'Released under the MIT License.',
            copyright: 'Copyright © 2024-present Evan You'
        }
    },
    vite: {
        // base: '/jz-tool-lib/',
        server: {
            proxy: {
                '/call-rest': {
                    target: 'https://beta.bdsaas.com:1888',
                    changeOrigin: true,
                }
            }
        },
    }
}
